1 using System.Collections;
2 using
System.Collections.Generic;
3 using
UnityEngine;
4
5 public
class DestroyTime : MonoBehaviour {
6
7     
void Awake(){
8         Destroy (gameObject,
2f);
9     }
10
11     
// Use this for initialization
12     
void Start () {
13         
14     }
15     
16     
// Update is called once per frame
17     
void Update () {
18         
19     }
20 }


Use this for initialization

Update is called once per frame



Gõ tìm kiếm nhanh...